
/*
	
public class HuffTree {

	public int size;
	public Object left,right;
	
	public HuffTree(int o, Object l, Object r){
		this.size=o;
		left=l;
		right=r;
	}
	
	public int compareTo(Object o){
		HuffNode other=(HuffNode) o;
		int ans=0;
		if (this.size!=other.size)
			ans= size-other.size;
		else
			ans= 0;
		return ans;
	}
	
	public void setNodesStrings(String s){
		if (left!=null){
			if (left instanceof HuffNode)
				((HuffNode) left).path=s+"0";
			if (left instanceof HuffTree)
				((HuffTree) left).setNodesStrings(s+"0");
		}
		if (right!=null){
			if (right instanceof HuffNode)
				((HuffNode) right).path=s+"0";
			if (right instanceof HuffTree)
				((HuffTree) right).setNodesStrings(s+"0");
		}
	}
	
	public String toString(){
		String ans="";
		if (left!=null)
			ans="Left.toString: "+left.toString()+" ";
		if (right!=null)
			ans=ans+"Right.toString: "+right.toString()+" ";
		
		return "Size: "+size+" "+ans;
	}
	
}
*/
